package 继承性.exer2;
//圆柱
public class Cylinder extends CircIc {
    private double length;//高
    public Cylinder(){
        length = 1;//构造器，将length属性初始化为1
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
    public double tiji(){
//        return (3.14 * getRadius() * getRadius()) * length;
        return mianji() * length;

    }
}
